var $__IMPORTS = [
	{ type:"css", id:"", 				path:"lib/ext-3.2.1/resources/css/ext-all.css" },
	{ type:"css", id:"", 				path:"lib/vas/js/customize/common/fileuploadfield.css" },
	
	{ type:"css", id:"", 				path:"lib/vas/js/customize/common/uploadwidget/css/filetree.css" },
	{ type:"css", id:"", 				path:"lib/vas/js/customize/common/uploadwidget/css/filetype.css" },
	{ type:"css", id:"", 				path:"lib/vas/js/customize/common/uploadwidget/css/icons.css" },
	
	{ type:"css", id:"", 				path:"lib/vas/js/customize/templatemanage/css/icons.css" },
	{ type:"css", id:"", 				path:"lib/vas/css/vas.css" },
	{ type:"css", id:"", 				path:"lib/vas/css/buttons.css" },
	{ type:"css", id:"", 				path:"lib/vas/css/checkTreePanel.css" },
	{ type:"css", id:"", 				path:"lib/vas/css/grid.css" },
	{ type:"css", id:"", 				path:"lib/vas/css/RowEditor.css" },
	{ type:"css", id:"", 				path:"lib/vas/css/Ext.ux.grid.CellActions.css" },
	{ type:"css", id:"", 				path:"lib/vas/css/RangeMenu.css" },
	{ type:"css", id:"", 				path:"lib/vas/css/GridFilters.css" },
//	{ type:"css", id:"", 				path:"lib/vas/css/ext-patch.css" },
	
	
	
	{ type:"js", id:"", 				path:"lib/ext-3.2.1/adapter/ext/ext-base.js" },
	{ type:"js", id:"", 				path:"lib/ext-3.2.1/ext-all.js" },
	
	{ type:"js", id:"", 				path:"lib/vas/js/form/Ext.form.TextField.js" },

	
	
	//{ type:"js", id:"", 				path:"lib/ext-3.1.1/ext-all-debug.js" },
//	{ type:"js", id:"", 				path:"lib/vas/js/component/VAS.CompositeField.js" },
	{ type:"js", id:"", 				path:"lib/vas/js/ux/Ext.ux.FieldSet.js" },
	{ type:"js", id:"", 				path:"lib/vas/js/ux/Ext.ux.Button.js" },
	{ type:"js", id:"", 				path:"lib/vas/js/ux/Ext.ux.plugins.PageComboResizer.js" },
	//{ type:"js", id:"", 				path:"lib/vas/js/ux/RowEditor.js" },
	{ type:"js", id:"", 				path:"lib/vas/js/ux/Ext.ux.DynamicTbar.js" },
	{ type:"js", id:"", 				path:"lib/vas/js/ux/Ext.ux.IconCombo.js" },
	{ type:"js", id:"", 				path:"lib/vas/js/ux/ColumnNodeUI.js" },
	{ type:"js", id:"", 				path:"lib/vas/js/ux/CheckColumn.js" },
	{ type:"js", id:"", 				path:"lib/vas/js/ux/Ext.ux.grid.CellActions.js" },

	//grid filter
	
//	{ type:"js", id:"", 				path:"lib/vas/js/ux/filter/menu/EditableItem.js" },
	{ type:"js", id:"", 				path:"lib/vas/js/ux/filter/menu/RangeMenu.js" },
	{ type:"js", id:"", 				path:"lib/vas/js/ux/filter/menu/ListMenu.js" },
	{ type:"js", id:"", 				path:"lib/vas/js/ux/filter/grid/GridFilters.js" },
//	{ type:"js", id:"", 				path:"lib/vas/js/ux/filter/menu/TreeMenu.js" },	
	{ type:"js", id:"", 				path:"lib/vas/js/ux/filter/grid/filter/Filter.js" },
	{ type:"js", id:"", 				path:"lib/vas/js/ux/filter/grid/filter/StringFilter.js" },
	{ type:"js", id:"", 				path:"lib/vas/js/ux/filter/grid/filter/DateFilter.js" },
	{ type:"js", id:"", 				path:"lib/vas/js/ux/filter/grid/filter/ListFilter.js" },
	{ type:"js", id:"", 				path:"lib/vas/js/ux/filter/grid/filter/NumericFilter.js" },
	{ type:"js", id:"", 				path:"lib/vas/js/ux/filter/grid/filter/BooleanFilter.js" },

	

	
	
	{ type:"js", id:"", 			    path:"lib/vas/js/vas/VAS.Constants.js" },
    { type:"js", id:"", 			    path:"lib/vas/js/AjaxQueue.js" },
    { type:"js", id:"", 				path:"lib/vas/js/Utils.js" },
    { type:"js", id:"", 			    path:"lib/vas/js/vas/VAS.BasicWindow.js" },
    
    { type:"js", id:"", 				path:"lib/vas/js/component/VAS.DynamicCombo.js" },
    { type:"js", id:"", 				path:"lib/vas/js/component/VAS.ImageFileUpload.js" },
    
    { type:"js", id:"", 				path:"lib/vas/js/component/VAS.TreePanel.js" },
    { type:"js", id:"", 				path:"lib/vas/js/component/VAS.DynamicFormWindow.js" },
//    { type:"js", id:"", 				path:"lib/vas/js/component/VAS.DynamicDetailPanel.js" },
    { type:"js", id:"", 				path:"lib/vas/js/component/VAS.DynamicGridWindow.js" },
    { type:"js", id:"", 				path:"lib/vas/js/component/VAS.DynamicQueryWindow.js" },
//    { type:"js", id:"", 				path:"lib/vas/js/component/VAS.DynamicDetailWindow.js" },
//    { type:"js", id:"", 				path:"lib/vas/js/component/VAS.DynamicDetailWindow.js" },   
//    { type:"js", id:"", 				path:"lib/vas/js/component/VAS.DynamicNewFormWindow.js" },
    { type:"js", id:"", 				path:"lib/vas/js/component/VAS.DynamicEditFormWindow.js" },
    { type:"js", id:"", 				path:"lib/vas/js/component/VAS.DynamicFormPanel.js" },
//    { type:"js", id:"", 				path:"lib/vas/js/component/VAS.DynamicDetail.js" },
    { type:"js", id:"", 				path:"lib/vas/js/component/VAS.FilterGrid.js" },
//    { type:"js", id:"", 				path:"lib/vas/js/component/VAS.RowEditorGrid.js" },
    { type:"js", id:"", 				path:"lib/vas/js/component/VAS.CellEditorGrid.js" },
    
    { type:"js", id:"", 				path:"lib/vas/js/component/VAS.DynamicRadioGroup.js" },
   
    
    { type:"js", id:"", 				path:"lib/vas/js/customize/publish/VAS.PublishWin.js" },
    
    { type:"js", id:"", 				path:"lib/vas/js/customize/common/Vtype.js" },

    { type:"js", id:"", 				path:"lib/vas/js/component/VAS.PasswordField.js" },
    { type:"js", id:"", 				path:"lib/vas/js/component/VAS.DynamicFormPanel.js" },
    { type:"js", id:"", 				path:"lib/vas/js/component/VAS.DynamicDetail.js" },
    { type:"js", id:"", 				path:"lib/vas/js/component/VAS.CommQueryGridWin.js" },
    { type:"js", id:"", 				path:"lib/vas/js/customize/userinfo/VAS.UserPasswordEdit.js" },
    { type:"js", id:"", 				path:"lib/vas/js/customize/menumanage/chooser.js" },
    { type:"js", id:"", 				path:"lib/vas/js/customize/menumanage/VAS.MenuAddWindow.js" },
    { type:"js", id:"", 				path:"lib/vas/js/customize/common/TreeMenu.js" },
    { type:"js", id:"", 				path:"lib/vas/js/customize/role/VAS.RoleWin.js" },
    { type:"js", id:"", 				path:"lib/vas/js/customize/common/FileUploadField.js" },
    
    { type:"js", id:"", 				path:"lib/vas/js/customize/common/uploadwidget/js/Ext.ux.FileUploader.js" },
    { type:"js", id:"", 				path:"lib/vas/js/customize/common/uploadwidget/js/Ext.ux.form.BrowseButton.js" },
    { type:"js", id:"", 				path:"lib/vas/js/customize/common/uploadwidget/js/Ext.ux.UploadPanel.js" },
    
    
    { type:"js", id:"", 				path:"lib/vas/js/customize/categorymanage/VAS.CategoryMenuWindow.js" },
    { type:"js", id:"", 				path:"lib/vas/js/customize/categorymanage/VAS.CategoryContentWindow.js" },
    { type:"js", id:"", 				path:"lib/vas/js/customize/articlemanage/VAS.ArticleMenuWindow.js" },
    { type:"js", id:"", 				path:"lib/vas/js/customize/articlemanage/VAS.ArticleContentWindow.js" },
    { type:"js", id:"", 				path:"lib/vas/js/customize/templatemanage/js/Ext.ux.tree.TreeFilterX.js" },
    { type:"js", id:"", 				path:"lib/vas/js/customize/templatemanage/js/Ext.ux.tree.RemoteTreePanel.js" },
    { type:"js", id:"", 				path:"lib/vas/js/customize/templatemanage/VAS.TemplateMenuWindow.js" },
    { type:"js", id:"", 				path:"lib/vas/js/customize/templatemanage/VAS.TemplateContentWindow.js" },
    
    { type:"js", id:"", 				path:"lib/vas/js/customize/propertyConfig/VAS.PropertyConfigWindow.js" },
    { type:"js", id:"", 				path:"lib/vas/js/ux/Ext.ux.SingleCheckTree.js" },
    { type:"js", id:"", 				path:"lib/vas/js/customize/propertyConfig/VAS.ViewcfgColumnTree.js" },
    
    { type:"js", id:"", 				path:"lib/vas/js/customize/audit/VAS.AuditWindow.js" },
    { type:"js", id:"", 				path:"lib/vas/js/customize/auditmanage/VAS.AuditSelectFormWindow.js" },
    { type:"js", id:"", 				path:"lib/vas/js/customize/auditmanage/VAS.AuditSelectGridWindow.js" },
    { type:"js", id:"", 				path:"lib/vas/js/customize/auditmanage/VAS.AuditSelectWindow.js" },
    { type:"js", id:"", 				path:"lib/vas/js/customize/auditmanage/VAS.AuditStepsFormWindow.js" },  
    { type:"js", id:"", 				path:"lib/vas/js/customize/auditmanage/VAS.AuditStepsGridWindow.js" },
    
    
  
    
    { type:"js", id:"", 				path:"lib/vas/js/Header.js" },
	{ type:"js", id:"", 				path:"lib/vas/js/vas/VAS.Portal.js" },	
	{ type:"js", id:"", 				path:"lib/vas/js/Menu.js" },
	{ type:"js", id:"", 				path:"lib/vas/js/App.js" },
	{ type:"js", id:"", 				path:"lib/vas/js/init.js" },

	{ type:"js", id:"", 				path:"lib/vas/js/HomePage.js" },
	{ type:"js", id:"", 				path:"lib/vas/js/customize/shortcut/VAS.ShortcutSetting.js" },
	
	
	 { type:"js", id:"", 				path:"lib/vas/js/component/VAS.DynamicQueryGridWin.js" }
];






function loadImports()
{
	var _n = $__IMPORTS.length;
	var _s = "";


	function loadScript($object){
		return '<script type="text/javascript" src="'+ STATIC_PATH_PREFIX + $object.path +'"></script>';
	}


	function loadStylesheet($object){
		return '<link id="'+ $object.id +'" rel="stylesheet" type="text/css" href="'+ STATIC_PATH_PREFIX + $object.path +'"/>';
	}

	function loadImport($object){
		if($object.type=="js"){
			return loadScript($object);
		}else{
			return loadStylesheet($object);

		}
	}

	
	for(var i = 0; i < _n; i++){
		_s += loadImport($__IMPORTS[i]);
	}
	
	document.write(_s);
}



function preloadMedia(){
	var _n = $__PRELOADS.length;
	var _i = [];

	function loadMedia($path){
		var _img = new Image();
		_img.src = CONFIG_FLASH_PATH_PREFIX+$path;
		return _img;
	}
	for(var i = 0; i < _n; i++){
		_i.push(loadMedia($__PRELOADS[i]));
	}
	

}



loadImports();
//preloadMedia();
//
//var getFont = Ext.lib.Ajax.getConnectionObject().conn;
//getFont.open("POST", 'preferServlet.json', false);
//getFont.setRequestHeader('Content-Type','application/x-www-form-urlencoded; charset=UTF-8');
//getFont.send(null);
//if (getFont.status == 200) {
//	var o = Ext.decode(getFont.responseText);
//	var family = o.family;
//	var size = o.size;
//	document.write('<style type="text/css">');
//	document.write("html,body,div,span,dl,dt,dd,ul,ol,li,h1,h2,h3,h4,h5,h6,pre,form,fieldset,input,p,blockquote,th,td {font-family:");
//	document.write(family);
//	document.write(';font-size:');
//	document.write(size);
//	document.write(';}</style>');
//}
